package com.union.pay.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

import static com.union.pay.properties.PayProperties.PREFIX;

@Data
@ConfigurationProperties(PREFIX)
public class PayProperties {

    public static final String PREFIX = "spring.union-pay";

    private Boolean enabled;

    /**
     * 建行支付配置
     */
    @NestedConfigurationProperty
    private CcbProperties ccb;

    private CcbRefundProperties ccbRefund;

}
